package com.powernode.constant;

/**
 * @author syo 2319615164@qq.com
 * @description 响应状态码
 * @date 2024/10/1
 * @Copyright syo
 */
public enum ResponseCode {
    OPERATION_FAIL(-1, "操作失败"),
    SERVER_INNER_ERROR(-2, "服务器内部异常"),
    UN_AUTHORIZATION(401, "未授权"),
    ACCESS_DENY_FAIL(403, "权限不足")

    ;
    private Integer code;
    private String desc;

    ResponseCode(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
